import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      // redirect() {
      //   return ['/sqm', '/zxy', '/yj', '/gr', '/fqm', '/xsh', '/zc'][Math.floor(Math.random() * (6 - 0 + 1)) + 0]
      // },
      component: () => import('../views/monaco/monacoIndex.vue')
    },
    {
      path: '/sqm',
      name: 'sqm',
      component: () => import('../views/sqm/SqmView.vue')
    },
    {
      path: '/xsh',
      name: 'xsh',
      component: () => import('../views/xsh/XshView.vue')
    },
    {
      path: '/input',
      name: 'input',
      component: () => import('../views/input/input.vue')
    },
    {
      path: '/flexList',
      name: 'flexList',
      component: () => import('../views/flexList/flexList.vue')
    },
  ]
})

export default router
